import http from '@/utils/http'

const baseURL = '/v1.0'

export const getCatalogSubject = (period) => {
  return http.get(`${baseURL}/public/catalog/subject/${period}`)
}

export const getCatalogGrade2 = (period) => {
  return http.get(`${baseURL}/public/catalog/grade/${period}`)
}

export const getCatalogGrade = (params) => {
  return http.post(`${baseURL}/public/catalog/grade`, params)
}

export const getCatalog = (params) => {
  return http.post(`${baseURL}/public/catalog`, params)
}
